home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINWORDS
/
WINE02BX.ZIP
/
LISP
/
MODES
/
PICTURE.ELC
< prev
next >
Wrap
Text File
|
1993-03-28
|
18KB
|
234 lines
;;; compiled by @win386 on Sat Mar 13 14:32:46 1993
;;; from file c:/src/lucid-19.4/lisp/modes/picture.el
;;; emacs version 19.3 Lucid.
;;; bytecomp version 2.08; 27-aug-92.
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs18.
(if (and (boundp 'emacs-version)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19")))
(error "This file was compiled for Emacs19."))
(provide 'picture)
(fset 'move-to-column-force #[(column) "└ !êië W½ä j¬ÿ\n U?¡Æh├U¡ì─╞╟!ê\njê└ !)╚ )ç" [move-to-column column col 9 nil indent-tabs-mode delete-char -1 t zmacs-region-stays] 3 "\
Move to column COLUMN in current line.
Differs from move-to-column in that it creates or modifies whitespace
if necessary to attain exactly the specified column."])
(fset 'picture-end-of-line #[(&optional arg) "½å┴!Syê┬yê├`─êxç" [arg prefix-numeric-value 0 " " nil] 3 "\
Position point after last non-blank character on current line.
With ARG not nil, move forward ARG - 1 lines first.
If scan reaches end of buffer, stop there without error." "P"])
(fset 'picture-forward-column #[(arg) "└i \\!ç" [move-to-column-force arg] 3 "\
Move cursor right, making whitespace if necessary.
With argument, move that many columns." "p"])
(fset 'picture-backward-column #[(arg) "└i Z!ç" [move-to-column-force arg] 3 "\
Move cursor left, making whitespace if necessary.
With argument, move that many columns." "p"])
(fset 'picture-move-down #[(arg) "i┴\n!ê├!)ç" [col picture-newline arg move-to-column-force] 2 "\
Move vertically down, making whitespace if necessary.
With argument, move that many lines." "p"])
(defconst picture-vertical-step 0 "\
Amount to move vertically after text character in Picture mode.")
(defconst picture-horizontal-step 1 "\
Amount to move horizontally after text character in Picture mode.")
(fset 'picture-move-up #[(arg) "└ [!ç" [picture-move-down arg] 2 "\
Move vertically up, making whitespace if necessary.
With argument, move that many lines." "p"])
(fset 'picture-movement-right #[nil "└┴┬\"ç" [picture-set-motion 0 1] 3 "\
Move right after self-inserting character in Picture mode." nil])
(fset 'picture-movement-left #[nil "└┴┬\"ç" [picture-set-motion 0 -1] 3 "\
Move left after self-inserting character in Picture mode." nil])
(fset 'picture-movement-up #[nil "└┴┬\"ç" [picture-set-motion -1 0] 3 "\
Move up after self-inserting character in Picture mode." nil])
(fset 'picture-movement-down #[nil "└┴┬\"ç" [picture-set-motion 1 0] 3 "\
Move down after self-inserting character in Picture mode." nil])
(fset 'picture-movement-nw #[nil "└┴ë\"ç" [picture-set-motion -1] 3 "\
Move up and left after self-inserting character in Picture mode." nil])
(fset 'picture-movement-ne #[nil "└┴┬\"ç" [picture-set-motion -1 1] 3 "\
Move up and right after self-inserting character in Picture mode." nil])
(fset 'picture-movement-sw #[nil "└┴┬\"ç" [picture-set-motion 1 -1] 3 "\
Move down and left after self-inserting character in Picture mode." nil])
(fset 'picture-movement-se #[nil "└┴ë\"ç" [picture-set-motion 1] 3 "\
Move down and right after self-inserting character in Picture mode." nil])
(fset 'picture-set-motion #[(vert horiz) "\n─┼\n╞ª╞ªT╟_╚\\\\╔¢@\"\n╦╠ !ê═╬!ç" [vert picture-vertical-step horiz picture-horizontal-step format "Picture:%s" 2 3 1 (nw up ne left none right sw down se) mode-name set-buffer-modified-p buffer-modified-p message ""] 5 "\
Set VERTICAL and HORIZONTAL increments for movement in Picture mode.
The mode line is updated to reflect the current direction."])
(fset 'picture-move #[nil "└ !ê┬!ç" [picture-move-down picture-vertical-step picture-forward-column picture-horizontal-step] 2 "\
Move in direction of picture-vertical-step and picture-horizontal-step."])
(fset 'picture-motion #[(arg) "└ \n_!ê├ _!ç" [picture-move-down arg picture-vertical-step picture-forward-column picture-horizontal-step] 3 "\
Move point in direction of current picture motion in Picture mode.
With ARG do it that many times. Useful for delineating rectangles in
conjunction with diagonal picture motion.
Do \\[command-apropos] picture-movement to see commands which control motion." "p"])
(fset 'picture-motion-reverse #[(arg) "└ [!ç" [picture-motion arg] 2 "\
Move point in direction opposite of current picture motion in Picture mode.
With ARG do it that many times. Useful for delineating rectangles in
conjunction with diagonal picture motion.
Do \\[command-apropos] picture-movement to see commands which control motion." "p"])
(fset 'picture-self-insert #[(arg) "┴V¡ÜS┬iT!ê├─!êcê─uê╞ ê╟¬aç" [arg 0 move-to-column-force delete-char -1 last-input-char picture-move nil zmacs-region-stays] 2 "\
Insert this character in place of character previously at the cursor.
The cursor then moves in the direction you previously specified
with the commands picture-movement-right, picture-movement-up, etc.
Do \\[command-apropos] picture-movement to see those commands." "p"])
(fset 'picture-clear-column #[(arg) "`ië\n\\─!ê`|êè ]j,ç" [opoint original-col arg target-col move-to-column-force] 3 "\
Clear out ARG columns after point without moving." "p"])
(fset 'picture-backward-clear-column #[(arg) "└ [!ç" [picture-clear-column arg] 2 "\
Clear out ARG columns before point, moving back over them." "p"])
(fset 'picture-clear-line #[(arg) "½ò┴!┬!ê├─V½â¬é[!ç┼╞!½è╟`╚yê`\"ê¬ê╔`╩ê`\"ê╩ëç" [arg prefix-numeric-value kill-line newline 0 looking-at "[ ]*$" kill-ring-save 1 kill-region nil zmacs-region-stays] 3 "\
Clear out rest of line; if at end of line, advance to next line.
Cleared-out line text goes into the kill ring, as do
newlines that are advanced over.
With argument, clear out (and save in kill ring) that many lines." "P"])
(fset 'picture-newline #[(arg) "┴W½âyç┴V¡ö┬êm½à├ ê¬â─uêSë¬hç" [arg 0 nil newline 1] 3 "\
Move to the beginning of the following line.
With argument, moves that many lines (up, if negative argument);
always moves to the beginning of a line." "p"])
(fset 'picture-open-line #[(arg) "è└ê┴\n!)ç" [nil open-line arg] 2 "\
Insert an empty line after the current line.
With positive argument insert that many lines." "p"])
(fset 'picture-duplicate-line #[nil "è└yê`┴┬!ê`{─yêc*ç" [0 picture-newline 1 contents -1] 3 "\
Insert a duplicate of the current line, below it." nil])
(defvar picture-tab-chars "!-~" "\
*A character set which controls behavior of commands
\\[picture-set-tab-stops] and \\[picture-tab-search]. It is NOT a
regular expression, any regexp special characters will be quoted.
It defines a set of \"interesting characters\" to look for when setting
(or searching for) tab stops, initially \"!-~\" (all printing characters).
For example, suppose that you are editing a table which is formatted thus:
| foo | bar + baz | 23 *
| bubbles | and + etc | 97 *
and that picture-tab-chars is \"|+*\". Then invoking
\\[picture-set-tab-stops] on either of the previous lines would result
in the following tab stops
: : : :
Another example - \"A-Za-z0-9\" would produce the tab stops
: : : :
Note that if you want the character `-' to be in the set, it must be
included in a range or else appear in a context where it cannot be
taken for indicating a range (e.g. \"-A-Z\" declares the set to be the
letters `A' through `Z' and the character `-'). If you want the
character `\\' in the set it must be preceded by itself: \"\\\\\".
The command \\[picture-tab-search] is defined to move beneath (or to) a
character belonging to this set independent of the tab stops list.")
(fset 'picture-set-tab-stops #[(&optional arg) "è└\n½å├─!¬▒┼╞!╚Q ╩yê`└ê╠ ═#½è╬└wêi B¬m ¼ê╧╨╞!\"ê* ╤ GS 8T╥\" ½ì @╘Iê Aë¼s╒!+ç" [nil tabs arg default-value tab-stop-list "[ ]+[" regexp-quote picture-tab-chars "]" regexp 0 bol re-search-backward t " " error "No characters in set %s on this line." make-string 32 blurb 58 message] 5 "\
Set value of tab-stop-list according to context of this line.
This controls the behavior of \\[picture-tab]. A tab stop
is set at every column occupied by an \"interesting character\" that is
preceded by whitespace. Interesting characters are defined by the
variable picture-tab-c